package com.ququ.syb.business.payment.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.AccountChannelBalance;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "balance")
public interface BalanceFegin {

    @RequestMapping(value = "/balance/channel")
    Result<AccountChannelBalance> getAccountChannelBalance(@RequestParam(value = "accountid") String accountid,
                                                           @RequestParam(value = "channelid") String channelid);

    @RequestMapping(value = "/balance/add")
    Result<AccountChannelBalance> addBalance(@RequestParam(value = "accountid") String accountid,
                                             @RequestParam(value = "channelid") String channelid,
                                             @RequestParam(value = "amount") Long amount,
                                             @RequestParam(value = "ordertype") Integer ordertype,
                                             @RequestParam(value = "tradenum") String tradenum,
                                             @RequestParam(value = "flowtype") Integer flowtype,
                                             @RequestParam(value = "appcode") String appcode,
                                             @RequestParam(value = "remark") String remark);
}
